<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>获取视觉视口</title>
</head>
<body>
	<script type="text/javascript" >
		console.log('当前设备的视觉视口宽度为',window.innerWidth)
	</script>
</body>
</html>